// gameoverdialog.h
#ifndef GAMEOVERDIALOG_H
#define GAMEOVERDIALOG_H

#include <QDialog>
#include <QPushButton>
#include <QLabel>
#include <QVBoxLayout>

class GameOverDialog : public QDialog
{
    Q_OBJECT

public:
    explicit GameOverDialog(int score, int highScore, QWidget *parent = nullptr);
signals:
    void restartGame();
    void returnToMenu();

private slots:
    void onDialogClosed();

private:
    QPushButton *m_restartBtn;
    QPushButton *m_menuBtn;
    QLabel *m_titleLabel;
    int score;
};

#endif // GAMEOVERDIALOG_H
